package day3.problem1;

//BC149.简写单词
//https://www.nowcoder.com/practice/0cfa856bf0d649b88f6260d878f35bb4?tpId=290&tqId=39937&ru=/exam/oj

import java.util.Scanner;

// 注意类名必须为 Main, 不要有任何 package xxx 信息
public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        StringBuffer ret = new StringBuffer();
        String s = in.nextLine();
        int index = s.indexOf(" ");
        ret.append(s.charAt(0));
        while(index != -1) {
            ret.append(s.charAt(index + 1));
            index = s.indexOf(" ",index + 1);
        }
        System.out.println(ret.toString().toUpperCase());
    }
}